package com.example.redis.exception;

public class ResultUtil {

    public static ResponseDto success(Object object){
        ResponseDto result = new ResponseDto();
        result.setCode("200");
        result.setMsg("操作成功");
        result.setData(object);
        return result;
    }

    public static ResponseDto error(Object object){
        ResponseDto result = new ResponseDto();
        result.setCode("500");
        result.setMsg("操作出错啦");
        result.setData(object);
        return result;
    }
}
